package com.kkb.domain;

import com.kkb.Document;
import com.kkb.domain.enums.Property;

import java.util.stream.Stream;

/**
 * @Author kkb
 * @Description HasParts 分部类
 * @Date 2024/8/1 15:26
 * @Version 1.0
 */

public interface HasParts extends Document {
    default Stream<Part> getParts() {
        return children(Property.PARTS.toString(), Part::new);
    }
}
